package edu.krazy.engine;

/**
 * @(#)Face.java
 *
 *
 * @author 
 * @version 1.00 2008/10/22
 */

public class Face {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Vertex3f v1, v2, v3;
	private float u,v;
	private float[] normal3f;

    public Face(Vertex3f V1, Vertex3f V2, Vertex3f V3) {
    	
    	v1 = V1;
    	v2 = V2;
    	v3 = V3;
    	normal3f = new float[3];
    	normal3f = Utils.calculateNormal3f(this);
    	
    }
    
    public Vertex3f getV1(){
    	
    	
    	return v1;
    }
    
    
    public Vertex3f getV2(){
    	
    	
    	return v2;
    }
    
    public Vertex3f getV3(){
    	
    	
    	return v3;
    }
    
    public void setU(float f){
    	
    	u = f;
    }
    public void setV(float f){
    	
    	v = f;
    }
    
    public float[] getNormal(){
    	
    	
    	return normal3f;
    }
    
    public void setNormal(float[] n){
    	
    	n = normal3f;
    }
    
}
